import request from '@/plugin/axios'

export function fetchList () {
  return request({
    url: '/microprogram/shopDesign',
    method: 'get'
  })
}

export function insert (data) {
  return request({
    url: '/microprogram/shopDesign',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/microprogram/shopDesign/' + data.id,
    method: 'put',
    data
  })
}
 
export function deleteById (data) {
  return request({
    url: '/microprogram/shopDesign/' + data,
    method: 'delete',
  })
}

export function getSkuList (data) {
  return request({
    url: 'wx/mdse/skuList',
    method: 'get',
    params: data
  })
}